Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2586 - (show annotations) (download)
Thu Sep 17 14:39:49 2015 UTC (8 years, 8 months ago) by niro
File size: 717 byte(s)
-make lprng spooler user and group configurable
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-client install-control all
15
16 install-client: all
17 $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
18 $(INSTALL) -m0644 *.client.class $(DESTDIR)/$(MCORE_LIBDIR)/include
19
20 install-control: all
21 $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
22 $(INSTALL) -m0644 *.control.class $(DESTDIR)/$(MCORE_LIBDIR)/include
23
24 clean:
25 rm -f $(SCRIPTS)
26
27 .PHONY: install-client
28 .PHONY: install-control
29 .PHONY: all install clean