X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=MakeTargets;h=fea561feb4c7a9b2ea7d590591cf9bf8e45844dc;hb=a900b6fb66530612d2117a5f7f29ea61ea60e522;hp=237873c11c4c3824d882eef872259992b3f7f03c;hpb=3340c5f2c98d7ad9d464760f561ff3d4a262a97f;p=libfirm diff --git a/MakeTargets b/MakeTargets index 237873c11..fea561feb 100644 --- a/MakeTargets +++ b/MakeTargets @@ -1,8 +1,13 @@ -# Hey Emacs, this is a -*- makefile -*- # -# libFIRM Project -# -# $Id$ +# Project: libFIRM +# File name: MakeTargets +# Purpose: +# Author: nicht Till Riedel, das waren andere +# Modified by: +# Created: +# CVS-ID: $Id$ +# Copyright: (c) 2002-2003 Universität Karlsruhe +# Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. # .PHONY: subdir_all @@ -60,24 +65,36 @@ 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 + @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 + @echo ================================================ install_headers: subdir_install_headers local_install_headers local_install_headers: ifneq ($(strip $(INSTALL_HEADERS)),) - $(INSTALL) -C -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR) + $(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) -C -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR) + $(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR) + @# the '.a' is ranlib'ed already, and the '.so' doesn't need ranlib-ing + @# $(RANLIB) $(addprefix $(LIBDIR)/,$(INSTALL_LIBS)) endif @@ -87,6 +104,9 @@ $(LIBDIR): $(INCLUDEDIR): mkdir -p $@ +$(INCLUDEDIR)/adt: + mkdir -p $@ + # generated the directory where all the generated documentation is $(AUTODOCDIR): mkdir -p $@