diff options
author | Christian Pointner <equinox@helsinki.at> | 2011-03-30 01:57:43 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2011-03-30 01:57:43 (GMT) |
commit | b3d207833d75cc38735344bcb346aeeafe5cf761 (patch) | |
tree | 7c40a863a3f8826e4f46402e92034321d6197b39 /rhnop-server/Makefile | |
parent | 4e12953dd22d862efd3882e4e8a51139ec504994 (diff) |
added libdir and install targets
Diffstat (limited to 'rhnop-server/Makefile')
-rw-r--r-- | rhnop-server/Makefile | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/rhnop-server/Makefile b/rhnop-server/Makefile index a540d77..6ef5dac 100644 --- a/rhnop-server/Makefile +++ b/rhnop-server/Makefile @@ -58,6 +58,7 @@ distclean: clean find . -name *.o -exec rm -f {} \; find . -name "*.\~*" -exec rm -rf {} \; rm -f include.mk + rm -f config.h clean: rm -f *.o @@ -65,8 +66,8 @@ clean: rm -f *.d.* rm -f $(EXECUTABLE) -INSTALL_TARGETS := install-bin install-etc -REMOVE_TARGETS := remove-bin remove-etc +INSTALL_TARGETS := install-bin install-lib install-etc +REMOVE_TARGETS := remove-bin remove-lib remove-etc install: all $(INSTALL_TARGETS) @@ -74,8 +75,17 @@ install-bin: $(EXECUTABLE) $(INSTALL) -d $(DESTDIR)$(BINDIR) $(INSTALL) -m 755 $(EXECUTABLE) $(DESTDIR)$(BINDIR) +install-lib: + $(INSTALL) -d $(DESTDIR)$(LIBDIR) + $(INSTALL) -m 644 conf.lua $(DESTDIR)$(LIBDIR) + $(INSTALL) -m 644 playlog.lua $(DESTDIR)$(LIBDIR) + $(INSTALL) -m 644 rddb.lua $(DESTDIR)$(LIBDIR) + $(INSTALL) -m 644 qlistener.lua $(DESTDIR)$(LIBDIR) + $(INSTALL) -m 644 tcpserver.lua $(DESTDIR)$(LIBDIR) + install-etc: - $(INSTALL) -d $(DESTDIR)$(ETCDIR)/$(EXECUTABLE) + $(INSTALL) -d $(DESTDIR)$(ETCDIR)/rhnop + $(INSTALL) -m 600 nopsyncd.conf $(DESTDIR)$(ETCDIR)/rhnop uninstall: remove @@ -84,8 +94,14 @@ remove: $(REMOVE_TARGETS) remove-bin: rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE) +remove-lib: + rm -f $(DESTDIR)$(LIBDIR)/conf.lua + rm -f $(DESTDIR)$(LIBDIR)/playlog.lua + rm -f $(DESTDIR)$(LIBDIR)/rddb.lua + rm -f $(DESTDIR)$(LIBDIR)/qlistener.lua + rm -f $(DESTDIR)$(LIBDIR)/tcpserver.lua + remove-etc: - rm -f $(DESTDIR)$(ETCDIR)/init.d/$(EXECUTABLE) purge: remove - rm -rf $(DESTDIR)$(ETCDIR)/$(EXECUTABLE)/ + rm -rf $(DESTDIR)$(ETCDIR)/rhnop |