From fd95e2edabcd7c465e954877b0b340453394de9b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 7 Dec 2024 08:31:39 +0100 Subject: [PATCH] CompanyKit: re-work the Makefiles --- Makefile | 6 ++++-- sysadmin/Makefile | 13 +++++++++++++ sysadmin/project.conf | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 sysadmin/Makefile create mode 100644 sysadmin/project.conf diff --git a/Makefile b/Makefile index 8c8b5cb..762991e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PACKAGE = CompanyKit VERSION = 0.0.0 VENDOR = khorben -SUBDIRS = tests +SUBDIRS = sysadmin tests OBJDIR = PREFIX = /usr/local DESTDIR = @@ -45,6 +45,9 @@ dist: $(RM) -r -- $(OBJDIR)$(PACKAGE)-$(VERSION) $(LN) -s -- "$$PWD" $(OBJDIR)$(PACKAGE)-$(VERSION) @cd $(OBJDIR). && $(TAR) -czvf $(PACKAGE)-$(VERSION)$(TGZEXT) -- \ + $(PACKAGE)-$(VERSION)/sysadmin/Makefile \ + $(PACKAGE)-$(VERSION)/sysadmin/sysadmin.sh \ + $(PACKAGE)-$(VERSION)/sysadmin/project.conf \ $(PACKAGE)-$(VERSION)/tests/Makefile \ $(PACKAGE)-$(VERSION)/tests/shlint.sh \ $(PACKAGE)-$(VERSION)/tests/sysadmin.sh \ @@ -52,7 +55,6 @@ dist: $(PACKAGE)-$(VERSION)/Makefile \ $(PACKAGE)-$(VERSION)/README.md \ $(PACKAGE)-$(VERSION)/config.sh \ - $(PACKAGE)-$(VERSION)/sysadmin/sysadmin.sh \ $(PACKAGE)-$(VERSION)/project.conf $(RM) -- $(OBJDIR)$(PACKAGE)-$(VERSION) diff --git a/sysadmin/Makefile b/sysadmin/Makefile new file mode 100644 index 0000000..7ae6224 --- /dev/null +++ b/sysadmin/Makefile @@ -0,0 +1,13 @@ + + +all: + +clean: + +distclean: clean + +install: all + +uninstall: + +.PHONY: all clean distclean install uninstall diff --git a/sysadmin/project.conf b/sysadmin/project.conf new file mode 100644 index 0000000..c8fd6ed --- /dev/null +++ b/sysadmin/project.conf @@ -0,0 +1 @@ +dist=Makefile,sysadmin.sh