From 5d665673a29be21fe4ecad870d0a2d4f5c2f308d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 6 Apr 2003 09:56:57 +0000 Subject: fixes for build system. add themes to the install process. use the build/ dir for configures trash dump --- build/Makefile.data | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'build/Makefile.data') diff --git a/build/Makefile.data b/build/Makefile.data index 874843ac..4e2b522b 100644 --- a/build/Makefile.data +++ b/build/Makefile.data @@ -5,30 +5,20 @@ dir = data files = rc3 srcdir := $(srcdir)/$(dir) -files := $(addprefix $(srcdir)/,$(files)) +dir := $(DESTDIR)$(rcdir) +sources := $(addprefix $(srcdir)/,$(files)) all: -$(target): $(objects) - $(AR) r $@ $^ - -$(dir)/%.o: $(srcdir)/%.c $(depdir)/%.d - $(COMPILE) -c -o $@ $< - -$(depdir)/%.d: $(srcdir)/%.c - @echo Building dependancies for $< - @$(INSTALL) -d $(depdir) - @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $< - install: - $(INSTALL) -d $(DESTDIR)$(rcdir) - $(INSTALL) -m 644 $(files) $(DESTDIR)$(rcdir) + $(INSTALL) -d $(dir) + $(INSTALL) -m 644 $(sources) $(dir) uninstall: - for i in $(notdir files); do \ - $(RM) $(DESTDIR)$(rcdir)/$$i; \ + for i in $(files); do \ + $(RM) $(dir)/$$i; \ done - -rmdir $(DESTDIR)$(rcdir) + -rmdir $(dir) clean: $(RM) $(srcdir)/*\~ -- cgit v1.2.3