head 1.6; access; symbols; locks; strict; comment @# @; 1.6 date 99.02.07.02.49.56; author ryu; state Exp; branches; next 1.5; 1.5 date 99.01.20.13.46.06; author ryu; state Exp; branches; next 1.4; 1.4 date 99.01.20.13.43.59; author ryu; state Exp; branches; next 1.3; 1.3 date 99.01.13.07.18.52; author ryu; state Exp; branches; next 1.2; 1.2 date 98.08.30.19.24.28; author ryu; state Exp; branches; next 1.1; 1.1 date 98.08.13.07.17.22; author ryu; state Exp; branches; next ; desc @# $Id$ @ 1.6 log @clean -f @ text @# $Id: Makefile,v 1.5 1999/01/20 13:46:06 ryu Exp ryu $ # Copyright (C) 1999 Robert K. Yu # email: robert@@yu.org # This file is part of Autochar. # Autochar is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # Autochar is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with Autochar; see the file COPYING. If not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # Optional: # AUTOCHAR = $(HOME)/src/autochar # PERL = /usr/bin/perl INSTALL_DIR = $(AUTOCHAR)/bin CSH_FILES = PERL_FILES = autochar.pl \ Hspice.pl \ Smartspice.pl SH_FILES = CSH_EXE = $(CSH_FILES:%.csh=$(INSTALL_DIR)/%) PERL_EXE = $(PERL_FILES:%.pl=$(INSTALL_DIR)/%) SH_EXE = $(SH_FILES:%.sh=$(INSTALL_DIR)/%) INSTALL_MODE = 555 # targets default: @@echo "Usage: make " @@echo "% make install" @@echo "% make clean" all: install install: csh_exe perl_exe sh_exe clean: -rm -f $(CSH_EXE) $(PERL_EXE) $(SH_EXE) csh_exe: $(CSH_EXE) perl_exe: $(PERL_EXE) sh_exe: $(SH_EXE) # pattern rules $(INSTALL_DIR)/%:%.sh install -m $(INSTALL_MODE) $< $@@ $(INSTALL_DIR)/%:%.pl rm -f $@@ sed -e "s#PERL#$(PERL)#g" $< > $@@ chmod $(INSTALL_MODE) $@@ $(INSTALL_DIR)/%:%.csh install -m $(INSTALL_MODE) $< $@@ @ 1.5 log @PERL is from environment @ text @d1 1 a1 1 # $Id: Makefile,v 1.4 1999/01/20 13:43:59 ryu Exp ryu $ d55 1 a55 1 -rm $(CSH_EXE) $(PERL_EXE) $(SH_EXE) @ 1.4 log @Added Hspice and Smartspice @ text @d1 1 a1 1 # $Id: Makefile,v 1.3 1999/01/13 07:18:52 ryu Exp ryu $ d24 2 a25 3 #AUTOCHAR = $(HOME)/src/autochar PERL = /usr/bin/perl @ 1.3 log @GPL @ text @d1 1 a1 1 # $Id$ d23 1 d26 2 d32 3 a34 1 PERL_FILES = autochar.pl d42 1 a42 1 INSTALL_OPTS = -m 555 d65 1 a65 1 install $(INSTALL_OPTS) $< $@@ d68 3 a70 1 install $(INSTALL_OPTS) $< $@@ d73 1 a73 1 install $(INSTALL_OPTS) $< $@@ @ 1.2 log @AUTOCHAR is from the environment @ text @d1 21 a21 1 # $Id: Makefile,v 1.1 1998/08/13 07:17:22 ryu Exp ryu $ @ 1.1 log @entered into RCS @ text @d1 1 a1 1 # $Id$ d3 1 a3 1 AUTOCHAR = $(HOME)/src/autochar @