diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d9bbf31 --- /dev/null +++ b/Makefile @@ -0,0 +1,67 @@ +all: mbase skip +.PHONY: all + +.SUFFIXES: +.SUFFIXES: .c .o + +prefix = /home/src/mbase/prefix +exec_prefix = ${prefix} +bindir = ${exec_prefix}/bin +libexecdir = ${exec_prefix}/libexec + +SHELL = /bin/sh + +INSTALL = /nix/store/k8lhqzpaaymshchz8ky3z4653h4kln9d-coreutils-8.31/bin/install -c +INSTALL_PROGRAM = $(INSTALL) +MKDIR_P = /nix/store/k8lhqzpaaymshchz8ky3z4653h4kln9d-coreutils-8.31/bin/mkdir -p + +CFLAGS = -g + +.c.o: + $(CC) -c -DLIBEXECDIR='"$(libexecdir)"' $(CPPFLAGS) $(CFLAGS) $< + +%: %.c + +configure: configure.ac + autoconf + +Makefile: Makefile.in config.status + ./config.status + +config.status: configure + ./config.status --recheck + +install-dirs: + # TODO + +install: mbase skip install-dirs + $(MKDIR_P) $(DESTDIR)$(bindir) + $(INSTALL_PROGRAM) mbase $(DESTDIR)$(bindir)/ + + $(MKDIR_P) $(DESTDIR)$(libexecdir)/mbase + $(INSTALL_PROGRAM) skip $(DESTDIR)$(libexecdir)/mbase/ +.PHONY: install + +uninstall: + rm -f $(DESTDIR)$(bindir)/mbase + rm -fr $(DESTDIR)$(libexecdir)/mbase +.PHONY: uninstall + +install-strip: + $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install +.PHONY: install-strip + +clean: + rm -f mbase mbase.o skip skip.o +.PHONY: clean + +distclean: clean + rm -f config.status config.log Makefile +.PHONY: distclean + +mbase-1.0.tar.gz: + -mkdir mbase-1.0 + cp install-sh configure.ac configure Makefile.in README mbase.c skip.c mbase-1.0 + tar czf mbase-1.0.tar.gz mbase-1.0 +dist: mbase-1.0.tar.gz +.PHONY: dist |