Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2724 - (hide 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 niro 2173 include ../../../Makefile.inc
2    
3 niro 2585 SCRIPTS = printing.client.class printing.control.class
4 niro 2173
5 niro 2586 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 niro 2173 all: $(SCRIPTS)
13    
14 niro 2724 install: install-common install-client install-control all
15 niro 2585
16 niro 2724 install-common: all
17    
18 niro 2585 install-client: all
19 niro 2173 $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
20 niro 2585 $(INSTALL) -m0644 *.client.class $(DESTDIR)/$(MCORE_LIBDIR)/include
21 niro 2173
22 niro 2585 install-control: all
23     $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
24     $(INSTALL) -m0644 *.control.class $(DESTDIR)/$(MCORE_LIBDIR)/include
25    
26 niro 2173 clean:
27     rm -f $(SCRIPTS)
28    
29 niro 2724 .PHONY: install-common
30 niro 2585 .PHONY: install-client
31     .PHONY: install-control
32 niro 2173 .PHONY: all install clean