| 1 |
# -*- mode: makefile -*- |
| 2 |
|
| 3 |
# gdmd -- dmd-like wrapper for gdc. |
| 4 |
# Copyright (C) 2011, 2012 Free Software Foundation, Inc. |
| 5 |
# |
| 6 |
# This program is free software; you can redistribute it and/or modify |
| 7 |
# it under the terms of the GNU General Public License as published by |
| 8 |
# the Free Software Foundation; either version 2 of the License, or |
| 9 |
# (at your option) any later version. |
| 10 |
# |
| 11 |
# This program is distributed in the hope that it will be useful, |
| 12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
# GNU General Public License for more details. |
| 15 |
# |
| 16 |
# You should have received a copy of the GNU General Public License |
| 17 |
# along with GCC; see the file COPYING3. If not see |
| 18 |
# <http://www.gnu.org/licenses/>. |
| 19 |
|
| 20 |
|
| 21 |
DESTDIR = |
| 22 |
target_prefix = |
| 23 |
program_suffix = |
| 24 |
prefix = /usr/local |
| 25 |
bindir = $(prefix)/bin |
| 26 |
man1dir = $(prefix)/share/man/man1 |
| 27 |
|
| 28 |
src = dmd-script |
| 29 |
man = dmd-script.1 |
| 30 |
|
| 31 |
all: |
| 32 |
|
| 33 |
|
| 34 |
install: $(DESTDIR)$(bindir)/$(target_prefix)gdmd$(program_suffix) \ |
| 35 |
$(DESTDIR)$(man1dir)/$(target_prefix)gdmd$(program_suffix).1 |
| 36 |
|
| 37 |
|
| 38 |
$(DESTDIR)$(bindir)/$(target_prefix)gdmd$(program_suffix): $(src) |
| 39 |
-rm -f $@ |
| 40 |
-install $< $@ |
| 41 |
|
| 42 |
|
| 43 |
$(DESTDIR)$(man1dir)/$(target_prefix)gdmd$(program_suffix).1: $(man) |
| 44 |
-rm -f $@ |
| 45 |
-install -m 644 $< $@ |
| 46 |
|
| 47 |
|
| 48 |
uninstall: |
| 49 |
-rm -f $(DESTDIR)$(bindir)/$(target_prefix)gdmd$(program_suffix) |
| 50 |
-rm -f $(DESTDIR)$(man1dir)/$(target_prefix)gdmd$(program_suffix).1 |
| 51 |
|
| 52 |
|
| 53 |
|