~ubuntu-branches/ubuntu/wily/mp3check/wily

« back to all changes in this revision

Viewing changes to .pc/20_use_destdir_to_install.patch/Makefile

  • Committer: Package Import Robot
  • Author(s): Sandro Tosi
  • Date: 2012-05-12 16:08:03 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120512160803-o064g848g3lnvrzc
Tags: 0.8.4-1
* New upstream release
* debian/watch
  - updated
* debian/control
  - added Vcs-{Git, Browser} fields
  - added ${misc:Depends} to Depends line
  - bump Standards-Version to 3.9.3 (no changes needed)
* Converted to 3.0 (quilt) source format
* Converted to debhelper 9 and dh sequencer
* debian/copyright
  - updated to DEP5 and to new upstream release
* debian/patches/20_use_destdir_to_install.patch
  - install using DESTDIR variable
* debian/rules
  - upstream doesn't ship doc anymore
  - install the manpage (no longer done by upstream Makefile)
* debian/patches/15-bts667288-gcc-4.7.patch
  - fix FTBFS with GCC-4.7 (due to uncoordinated upload by gcc "maintainer");
    thanks to Jari Aalto for the patch; Closes: #667288
* debian/patches/30_bts624138_manpage_typo.patch
  - fix a typo in the manpage; thanks to Reuben Thomas for the report;
    Closes: #624138

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2008 by Johannes Overmann <Johannes.Overmann@gmx.de>
 
2
# Please see COPYING for license.
 
3
 
 
4
# --- config ----------------------------------------------------------------
 
5
WARN = -Wall -W -g
 
6
#OPT = -O2
 
7
OPT =
 
8
CPPFLAGS = $(ADDITIONAL_CPPFLAGS)
 
9
CXXFLAGS = $(WARN) $(OPT)
 
10
CXX = g++
 
11
CC = $(CXX)
 
12
 
 
13
# --- default target
 
14
default: all
 
15
 
 
16
# --- target definition -----------------------------------------------------
 
17
-include Makefile.init # indirectly include TARGET
 
18
include TARGET
 
19
SRC := $(wildcard *.cc) $(ADDITIONAL_SOURCES)
 
20
VERSION := $(shell grep '\#define VERSION' $(TARGET).cc | sed 's/.*"\([^"]*\)".*/\1/g')
 
21
DISTFILES := $(SRC) $(wildcard *.h) TARGET INSTALL COPYING Makefile configure $(wildcard $(TARGET).1)
 
22
 
 
23
 
 
24
# --- common rules ----------------------------------------------------------
 
25
OBJ := $(SRC:.cc=.o)
 
26
 
 
27
all: $(TARGET)
 
28
 
 
29
$(TARGET): $(OBJ)
 
30
 
 
31
strip:
 
32
        strip $(TARGET)
 
33
 
 
34
install: all strip
 
35
        cp $(TARGET) /usr/local/bin
 
36
 
 
37
PACKAGE = $(TARGET)-$(VERSION)
 
38
dist:
 
39
        rm -rf $(PACKAGE)
 
40
        mkdir $(PACKAGE)
 
41
        cp $(DISTFILES) $(PACKAGE)
 
42
        tar czvhf $(PACKAGE).tgz $(PACKAGE)
 
43
 
 
44
clean:
 
45
        rm -f $(OBJ) $(DEP) $(TARGET) *~ $(PACKAGE).tgz
 
46
        rm -rf $(PACKAGE) $(ADDITIONAL_CLEANFILES)
 
47
 
 
48
svnclean: clean
 
49
 
 
50
.PHONY: default all clean strip dist
 
51
 
 
52
# --- meta object compiler for qt -------------------------------------------
 
53
moc_%.cc: %.h
 
54
        moc -o $@ $<
 
55
        
 
56
        
 
57
# --- dependency generation -------------------------------------------------
 
58
.dep.%: %.cc
 
59
        $(CXX) $(CPPFLAGS) -MM -MT "$@ $(<:%.cc=%.o)" $< -o $@
 
60
DEP := $(SRC:%.cc=.dep.%)
 
61
ifeq ($(findstring $(MAKECMDGOALS),clean),)
 
62
ifeq ($(findstring $(MAKECMDGOALS),svnclean),)
 
63
-include $(DEP)
 
64
endif
 
65
endif
 
66
                
 
67
B="b c"         
 
68
a:
 
69
        sh -c "ln -s a $(B)"