Magellan Linux

Contents of /mcore-src/trunk/mcore-tools/src/modules/lprng/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2724 - (show annotations) (download)
Mon Dec 21 09:31:33 2015 UTC (8 years, 5 months ago) by niro
File size: 776 byte(s)
-reworked Makefiles that they really support install-common, install-client and install install-control targets
1 include ../../../Makefile.inc
2
3 SCRIPTS = printing.client.class printing.control.class
4
5 LPRNG_SPOOLER_USER = lp
6 LPRNG_SPOOLER_GROUP = lp
7
8 SCRIPT_SED_LINES += \
9 -e "s:@@LPRNG_SPOOLER_USER@@:$(LPRNG_SPOOLER_USER):g" \
10 -e "s:@@LPRNG_SPOOLER_GROUP@@:$(LPRNG_SPOOLER_GROUP):g"
11
12 all: $(SCRIPTS)
13
14 install: install-common install-client install-control all
15
16 install-common: all
17
18 install-client: all
19 $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
20 $(INSTALL) -m0644 *.client.class $(DESTDIR)/$(MCORE_LIBDIR)/include
21
22 install-control: all
23 $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
24 $(INSTALL) -m0644 *.control.class $(DESTDIR)/$(MCORE_LIBDIR)/include
25
26 clean:
27 rm -f $(SCRIPTS)
28
29 .PHONY: install-common
30 .PHONY: install-client
31 .PHONY: install-control
32 .PHONY: all install clean