~ubuntu-branches/ubuntu/precise/stfl/precise

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-05-14 23:43:56 UTC
  • mfrom: (6.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090514234356-ayzg1yp4v9cti80r
Tags: 0.20-2ubuntu1
* Merge from debian unstable (LP: #376640), Ubuntu remaining changes:
  - Adjust debian/python-stfl.install to install all python modules into
    /usr/lib/pythonX.Y/*-packages.
  - debian/rules:
    + Include /usr/share/python/python.mk (needed to build with Python 2.6).
* debian/rules:
  - Use py_sitename macro to copy all python modules in to the right path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
25
25
export LDLIBS += -lncursesw
26
26
 
 
27
VERSION := 0.20
 
28
 
27
29
all: libstfl.a example
28
30
 
29
31
example: libstfl.a example.o
43
45
        rm -f python/stfl_wrap.c python/stfl_wrap.o
44
46
        rm -f ruby/Makefile ruby/stfl_wrap.c ruby/stfl_wrap.o
45
47
        rm -f ruby/stfl.so ruby/build_ok Makefile.deps_new
 
48
        rm -f stfl.pc
46
49
 
47
50
Makefile.deps: *.c widgets/*.c *.h
48
51
        $(CC) -I. -MM *.c > Makefile.deps_new
49
52
        $(CC) -I. -MM widgets/*.c | sed 's,^wt_[^ ]*\.o: ,widgets/&,' >> Makefile.deps_new
50
53
        mv -f Makefile.deps_new Makefile.deps
51
54
 
52
 
install: all
53
 
        mkdir -p $(DESTDIR)$(prefix)/lib
 
55
install: all stfl.pc
 
56
        mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
54
57
        mkdir -p $(DESTDIR)$(prefix)/include
55
58
        install -m 644 libstfl.a $(DESTDIR)$(prefix)/lib/
56
59
        install -m 644 stfl.h $(DESTDIR)$(prefix)/include/
 
60
        install -m 644 stfl.pc $(DESTDIR)$(prefix)/lib/pkgconfig/
 
61
 
 
62
stfl.pc: stfl.pc.in
 
63
        sed 's,@VERSION@,$(VERSION),g' < $< | sed 's,@PREFIX@,$(prefix),g' > $@
57
64
 
58
65
ifeq ($(FOUND_SPL),1)
59
66
include spl/Makefile.snippet