ispman/install-data/schema Makefile,1.4,1.5
Joerg Delker <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/install-data/schema
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31192/install-data/schema
Modified Files:
Makefile
Log Message:
changed Makefile for smarter install
Index: Makefile
===================================================================
RCS file: /cvsroot/ispman/ispman/install-data/schema/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Makefile 6 Aug 2003 06:49:37 -0000 1.4
+++ Makefile 1 Aug 2004 21:12:55 -0000 1.5
@@ -1,10 +1,24 @@
-all:
+include ../../makedefs
+INSTALL = ../../install-sh
+INSTALL_DIR = $(DESTDIR)$(PREFIX)/conf/schema
+SCHEMAS = ispman.schema dnszone.schema pureftpd.schema RADIUS-LDAPv3.schema
+
+all: $(SCHEMAS)
+
+ispman.schema:
@echo building schema
@find . -name objc.txt -exec cat {} \; > ispman.oc.schema
@find . -name attr.txt -exec cat {} \; > ispman.at.schema
- @cat schema.head ispman.at.schema ispman.oc.schema >ispman.schema
+ @cat schema.head ispman.at.schema ispman.oc.schema > ispman.schema
+
+install: $(SCHEMAS)
+ @list='$(SCHEMAS)'; for p in $$list; do \
+ if test -f $$p; then \
+ echo "$(INSTALL) $$p $(INSTALL_DIR)/`echo $$p`"; \
+ $(INSTALL) -c $$p $(INSTALL_DIR)/`echo $$p`; \
+ else :; fi; \
+ done
+
clean:
rm -f ispman.at.schema ispman.oc.schema ispman.schema
-
-
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com