1# 2# Datafile makefile for CUPS. 3# 4# Copyright 2007-2014 by Apple Inc. 5# Copyright 1993-2006 by Easy Software Products. 6# 7# Licensed under Apache License v2.0. See the file "LICENSE" for more information. 8# 9 10include ../Makedefs 11 12# 13# Data files... 14# 15 16PPDCFILES = \ 17 epson.h \ 18 font.defs \ 19 hp.h \ 20 label.h \ 21 media.defs \ 22 raster.defs 23 24 25# 26# Make everything... 27# 28 29all: 30 31 32# 33# Make library targets... 34# 35 36libs: 37 38 39# 40# Make unit tests... 41# 42 43unittests: 44 45 46# 47# Clean all config and object files... 48# 49 50clean: 51 52 53# 54# Dummy depend... 55# 56 57depend: 58 59 60# 61# Install all targets... 62# 63 64install: all install-data install-headers install-libs install-exec 65 66 67# 68# Install data files... 69# 70 71install-data: 72 $(INSTALL_DIR) -m 755 $(DATADIR)/banners 73 $(INSTALL_DIR) -m 755 $(DATADIR)/data 74 $(INSTALL_DIR) -m 755 $(DATADIR)/model 75 $(INSTALL_DIR) -m 755 $(DATADIR)/ppdc 76 for file in $(PPDCFILES); do \ 77 $(INSTALL_DATA) $$file $(DATADIR)/ppdc; \ 78 done 79 $(INSTALL_DIR) -m 755 $(DATADIR)/profiles 80 81 82# 83# Install programs... 84# 85 86install-exec: 87 88 89# 90# Install headers... 91# 92 93install-headers: 94 95 96# 97# Install libraries... 98# 99 100install-libs: 101 102 103# 104# Uninstall files... 105# 106 107uninstall: 108 for file in $(PPDCFILES); do \ 109 $(RM) $(DATADIR)/ppdc/$$file; \ 110 done 111 -$(RMDIR) $(DATADIR)/profiles 112 -$(RMDIR) $(DATADIR)/ppdc 113 -$(RMDIR) $(DATADIR)/model 114 -$(RMDIR) $(DATADIR)/data 115 -$(RMDIR) $(DATADIR)/banners 116 -$(RMDIR) $(DATADIR) 117