ad-hoc fix for lfoat compares (this is not mallons optimal solution yet)
[libfirm] / MakeTargets
index 6c4e6a6..40f1c1a 100644 (file)
@@ -31,9 +31,7 @@ local_clean:
 realclean: subdir_realclean local_clean
        $(RM) $(GENFILES) .depend TAGS $(TARDIRNAME)
 
-depend:        subdir_depend local_depend
-.PHONY: local_depend
-local_depend: $(CFILES) $(filter %.h,$(SOURCES) $(GENFILES))
+.depend: $(CFILES) $(filter %.h,$(SOURCES) $(GENFILES))
 ifeq ($(strip $(CFILES)),)
        >.depend
 else
@@ -65,13 +63,14 @@ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
        CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status >&2
 
 # generate TAGS
-tags:  subdir_tags local_tags
-.PHONY: local_tags
-local_tags:    $(TAGFILES)
-       etags -C $^
+.PHONY: tags
+tags:  TAGS
+TAGS:
+       ctags -R *.[ch]
 
 # installation
-install:       $(INCLUDEDIR) install_headers $(LIBDIR) install_libs
+install:       $(INCLUDEDIR) $(INCLUDEDIR)/adt install_headers $(LIBDIR) install_libs
+       $(INSTALL) -m u+rwx,a+rx $(addprefix $(topdir)/,libfirm.pc) $(LIBDIR)/pkgconfig
        @echo ================================================
        @echo Don\'t forget to add $(LIBDIR) to LD_LIBRARY_PATH
        @echo Don\'t forget to add /usr/public/libxml2/lib to LD_LIBRARY_PATH
@@ -82,12 +81,18 @@ local_install_headers:
 ifneq ($(strip $(INSTALL_HEADERS)),)
        $(INSTALL)  -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
 endif
+ifneq ($(strip $(INSTALL_GENERATED_HEADERS)),)
+       $(INSTALL)  -m u+rw,a+r $(INSTALL_GENERATED_HEADERS) $(INCLUDEDIR)
+endif
+ifneq ($(strip $(INSTALL_HEADERS_ADT)),)
+       $(INSTALL)  -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS_ADT)) $(INCLUDEDIR)/adt
+endif
 
 install_libs:          subdir_install_libs local_install_libs
 local_install_libs:
 ifneq ($(strip $(INSTALL_LIBS)),)
        $(INSTALL)  -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
-       @# the '.a' are ranlib'ed already, and the '.so' doesn't need ranlib-ing
+       @# the '.a' is ranlib'ed already, and the '.so' doesn't need ranlib-ing
        @# $(RANLIB) $(addprefix $(LIBDIR)/,$(INSTALL_LIBS))
 endif
 
@@ -98,6 +103,9 @@ $(LIBDIR):
 $(INCLUDEDIR):
        mkdir -p $@
 
+$(INCLUDEDIR)/adt:
+       mkdir -p $@
+
 # generated the directory where all the generated documentation is
 $(AUTODOCDIR):
        mkdir -p $@
@@ -110,4 +118,4 @@ help:
        @echo "but not all of them should be used or make sense"
 
 # include dependencies
--include .depend
+include .depend