about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-10 16:49:43 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-10 16:49:43 +0200
commitdbf7e03996032a6def3b8e97468b78d6da9e8c88 (patch)
tree72599571a9df212d81968057b55b241c134ea1de /Makefile
parent1076f2b6b3d3751d5d5db6fcb9ac8c247e04e893 (diff)
downloaddwm-dbf7e03996032a6def3b8e97468b78d6da9e8c88.tar.gz
added gridmenu
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile38
1 files changed, 35 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fff5ee1..6d853bd 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,21 @@
 
 include config.mk
 
-SRC      = wm.c
-OBJ      = ${SRC:.c=.o}
+SRC = wm.c
+OBJ = ${SRC:.c=.o}
+MAN = gridwm.1
+BIN = gridwm gridmenu     
 
-all: gridwm
+all: config gridwm
 	@echo finished
 
+config:
+	@echo gridwm build options:
+	@echo "LIBS     = ${LIBS}"
+	@echo "CFLAGS   = ${CFLAGS}"
+	@echo "LDFLAGS  = ${LDFLAGS}"
+	@echo "CC       = ${CC}"
+
 .c.o:
 	@echo CC $<
 	@${CC} -c ${CFLAGS} $<
@@ -21,3 +30,26 @@ gridwm: ${OBJ}
 
 clean:
 	rm -f gridwm *.o
+
+dist: clean
+	mkdir -p gridwm-${VERSION}
+	cp -R Makefile README LICENSE config.mk ${SRC} ${MAN} gridwm-${VERSION}
+	tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
+	gzip gridwm-${VERSION}.tar
+	rm -rf gridwm-${VERSION}
+
+install: all
+	@mkdir -p ${DESTDIR}${PREFIX}/bin
+	@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
+	@echo installed executable files to ${DESTDIR}${PREFIX}/bin
+	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
+	@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
+	@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
+
+uninstall:
+	for i in ${BIN}; do \
+		rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
+	done
+	for i in ${MAN1}; do \
+		rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
+	done
color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
discard """
  errormsg: "type mismatch: got (string) but expected 'ptr'"
  line: 20
  disabled: true
"""

import typetraits

type
  Vec[N: static[int]; T] = distinct array[N, T]

var x = Vec([1, 2, 3])

static:
  assert x.type.name == "Vec[static[int](3), int]"

var str1: string = "hello, world!"
var ptr1: ptr = addr(str1)

var str2: string = "hello, world!"
var ptr2: ptr = str2